<?php

namespace app\admin\model;

use think\Model;

class Special extends Model
{
    protected $createTime = false;
    protected $updateTime = false;

    public function addspecial($data){
        $specialData = array();
        $specialData = [
            'special_name' => $data['special_name'],
            'type' => $data['type'],
            'keywords' => '1',
            'desc' => '1',
            'content' => '1',
            'rec_index' => '1',
            'rec_bottom' => '1',
            'pid' => '1',
        ];

        if($this->save($specialData)){
            return true;
        }else{
            return false;
        }
    }
}
